package com.example.fw;

import org.openqa.selenium.By;

public class NavigationHelper extends HelperWithWebDriverBase {

	public NavigationHelper(ApplicationManager manager) {
		super(manager);
	}

	public void openMainPage() {
		// if (we are not on the main page) ()
		openUrl("http://localhost/addressbookv4.1.4/");
		// )
	}

	public void goToGroupListPage() {
		// if (getCurrentUrl() !=
		// "http://localhost/addressbookv4.1.4/group.php"{
		click(By.linkText("groups"));
		// )
	}

	public void goToContactListPage() {
		// if (getCurrentUrl() !=
		// "http://localhost/addressbookv4.1.4/edit.php"{
		click(By.linkText("add new"));
		// )
	}
}